package easyexcel.fill;

import com.alibaba.excel.annotation.format.NumberFormat;
import com.alibaba.excel.converters.bigdecimal.BigDecimalNumberConverter;
import com.alibaba.excel.converters.doubleconverter.DoubleStringConverter;
import com.alibaba.excel.converters.string.StringNumberConverter;
import com.zwh.common.easyexcel.annotation.ExcelFillProperty;


/**
 * 填充数据，带数据类型转换
 * @author monkey
 * @date 2021/3/25 11:11
 **/
public class FillWithAnnotationData {

    private String name;
    @NumberFormat(",##0.00")
    @ExcelFillProperty(converter = StringNumberConverter.class)
    private String money;
    @NumberFormat(",##0.00")
    @ExcelFillProperty(converter = DoubleStringConverter.class)
    private Double number;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public Double getNumber() {
        return number;
    }

    public void setNumber(Double number) {
        this.number = number;
    }
}
